package com.zhuhjay.common.base.constant;

/**
 * 上下文常量
 * @author ZhuHJay
 * @date 2023/2/25 11:35
 */
public class ApplicationConstant {

    /** 包扫描根路径 **/
    public static final String BASE_PACKAGE = "com.zhuhjay";

    /** 用户登出请求匹配器 **/
    public static final String LOGOUT_REQUEST_MATCHER = "/logout";

    /** 用户登出请求方式 **/
    public static final String LOGOUT_REQUEST_METHOD = "POST";

    /** 超级管理员的角色id **/
    public static final Integer SUPER_ADMIN_ROLE_ID = 1;

    /** 超级管理员的id **/
    public static final Integer SUPER_ADMIN_ID = 1;

    /** 超级管理员操作权限 **/
    public static final String SUPER_ADMIN_AUTHORITY = "admin";

    /** 路径分隔符 **/
    public static final String PATH_SEPARATOR = "/";

    /** 文件资源前缀 **/
    public static final String FILE_RESOURCE_PREFIX = "file:";

    /** 路径全匹配符号 **/
    public static final String PATH_ALL_MATCH = "/**";

    /** 头像目录相对路径 **/
    public static final String AVATAR_PATH = "avatar";

    /** 上传文件目录相对路径 **/
    @Deprecated
    public static final String UPLOAD_PATH = "upload";

    /** 文件系统目录相对路径 **/
    public static final String FILE_SYSTEM_PATH = "fileSystem";

    /** 图床(MarkDown...)目录相对路径 **/
    public static final String PICTURE_BED_PATH = "pictureBed";

    /** 临时文件目录相对路径 **/
    public static final String TEMP_PATH = "temp";

    /** 用户唯一id key **/
    public static final String USER_UNIQUE_ID_KEY = "uid";

    /** 用户名 key **/
    public static final String USER_NAME_KEY = "username";

    /** 用户id key **/
    public static final String USER_ID_KEY = "id";

    /** 文件系统的根目录id **/
    public static final String FILE_SYSTEM_ROOT_DIR_ID = "ROOT";

    /** 文件系统的公共目录id **/
    public static final String FILE_SYSTEM_COMMON_DIR_ID = "COMMON";

}
